//*******************************************************************
//  Textbooks.java   Author: Tang Caiming
//
//  由Books类派生的教材类。
//*******************************************************************
public class Textbooks extends Books
{
    private String territory;   //  教材所属领域

    public Textbooks(int numpages, String numbookname,String numauthor,String numpress,String numcopyrightdate,String numterritory)
    {
        super(numpages,numbookname,numauthor,numpress,numcopyrightdate);
        territory = numterritory;
    }

    public void setTerritory(String territory)
    {
        this.territory = territory;
    }

    public String getTerritory()
    {
        return territory;
    }

    @Override
    public String toString()
    {
        String result = super.toString() + "\n该该课本所属领域为：" + territory;
        return result;
    }
}
